package qiangqiang.service;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import qiangqiang.dao.MessageBoardDao;
import qiangqiang.entity.MessageBoard;

import java.util.List;

/**
 * Created by q on 2017/10/17.
 */
@Service
public class MessageBoardService {

    @Autowired
    private MessageBoardDao dao;

    public void addMessage(MessageBoard messageBoard){
        dao.addMessage(messageBoard);
    }
    public List<MessageBoard> getAllMessage(){
        return dao.getAllMessage();
    }
    public long updateLikeNumber(long mId){
        return dao.updateLikeNumber(mId);
    }
}
